package com.baizhi.service.impl;

import com.baizhi.dao.ProvinceDao;
import com.baizhi.entity.Province;
import com.baizhi.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProvinceServiceImpl implements ProvinceService {
    private ProvinceDao provinceDao;
    @Autowired
    public void setProvinceDao(ProvinceDao provinceDao) {
        this.provinceDao = provinceDao;
    }

    @Override
    public List<Province> selectAll() {
        List<Province> provinces = provinceDao.selectAll();
        return provinces;
    }
}
